package com.tq.teaching_quality.mapper;

import com.tq.teaching_quality.entity.SurveyQuestion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 问卷 Mapper 接口
 * </p>
 *
 * @author YTH
 * @since 2020-06-29
 */
@Repository
public interface SurveyQuestionMapper extends BaseMapper<SurveyQuestion> {

    //获取最大的题目id，即刚插入的id
    @Select("SELECT MAX(id) FROM survey_question;")
    public long SelectMaxId();

}
